//package com.nuonuo.refresh.controller;
//
//import com.nuonuo.refresh.service.TestSmartInitializingSingletonService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
//import org.springframework.context.annotation.Scope;
//import org.springframework.context.annotation.ScopedProxyMode;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.PostConstruct;
//
///**
// * @author duan
// * @version 1.0
// * @date 2023/1/16 10:41
// */
//@RestController
//@RequestMapping(value = "drsValue")
//@RefreshScope
//public class DrsValueController {
//
//    @Value("${app.name:test-client}")
//    private String appName;
//
//    @Autowired
//    private TestSmartInitializingSingletonService testSmartInitializingSingletonService;
//
//    @PostConstruct
//    public void init() {
//        System.out.println("controller.......");
//    }
//
//    @GetMapping(value = "getAppName")
//    public String getAppName() {
//        testSmartInitializingSingletonService.sayHello();
//        return this + ", " + appName;
//    }
//
//}
